package com.hsteach.dao.domain.activity;

import com.hsteach.common.annotation.Excel;
import com.hsteach.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 活动附件对象 tb_activity_files
 * 
 * @author fanxquer
 * @date 2023-07-11
 */
@Data
public class ActivityFiles extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 活动id */
    @Excel(name = "活动id")
    private Long activityId;

    /** 类型 1图片 2文件 */
    @Excel(name = "类型 1图片 2文件")
    private Integer fileType;

    /** 访问url */
    @Excel(name = "访问url")
    private String url;

    @Excel(name = "附件类型")
    private String fileExt;

    /** 附件名 */
    @Excel(name = "附件名")
    private String fileName;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("activityId", getActivityId())
            .append("fileType", getFileType())
            .append("url", getUrl())
            .append("fileName", getFileName())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
